<html>
<head>
    <title>Js调用Android</title>
</head>

<body>


<div style="margin-left:50px;margin-top:100px">
    <div>
        <a href="test://start/?id=431&name=zhouyuan&age=23"
           style="font-size:30px">跳转start</a>
    </div>
    <div>
        <a href="test://start/?id=431&name=zhouyuan&age=23"
           style="font-size:30px">跳转start</a>
    </div>
    <div onclick="closeActivity()">

    </div>
    <!--<a href="test://start/?id=431&name=zhouyuan&age=23">跳转start</a>-->
    <!--<a href="test://web/?id=431&name=zhouyuan&age=23">跳转web</a>-->
    <!--<a href="test://login/?id=431&name=zhouyuan&age=23">跳转Login</a>-->
</div>

</body>
<script>
<!-- 关闭h5的页面，不能关闭Native的Activity页面-->
    function closeActivity(){
    alert("关闭页面开始===");
<!--   关闭当前页面，**注意必须是window.open()打开的页面才有效果-->
      var userAgent = navigator.userAgent;
	if (userAgent.indexOf("Firefox") != -1 || userAgent.indexOf("Chrome") !=-1) {
			window.location.href="about:blank";
			window.close();
	} else {
			window.opener = null;
			window.open("", "_self");
			window.close();
	}
        alert("关闭页面结束");
    }





</script>
</html>